//package com.yupi.yuaicodemother.ai.mcp;
//
//
//import dev.langchain4j.mcp.client.McpClient;
//import dev.langchain4j.service.AiServices;
//import dev.langchain4j.service.tool.ToolProvider;
//import dev.langchain4j.ai.chat.ChatLanguageModel;
//
//class BotService {
//    private final Bot bot;
//
//    public BotService() {
//        McpClient mcpClient = MCPClientFactory.createMcpClient();
//        ToolProvider toolProvider = MCPToolProviderFactory.createToolProvider(mcpClient);
//
//        // 替换为你的语言模型
//        ChatLanguageModel model = new OpenAiChatLanguageModel.Builder()
//                .apiKey("YOUR_OPENAI_API_KEY")
//                .build();
//
//        this.bot = AiServices.builder(Bot.class)
//                .chatLanguageModel(model)
//                .toolProvider(toolProvider)
//                .build();
//    }
//
//    public String chat(String message) {
//        return bot.chat(message);
//    }
//}